import numpy as np
import pandas as pd

s1 = pd.Series([1, 4, 7, 10])
print('使用列表创建的Series对象s1: \n', s1)
arr = np.array([1, 4, 7, 10])
s2 = pd.Series(arr, ['a', 'b', 'c', 'd'])
print('使用数组创建的Series对象s2: \n', s2)
s3 = pd.Series({'a': 1, 'b': 4, 'c': 7, 'd': 10})
print('使用字典创建的Series对象s3: \n', s3)
